<template>
	<view v-if="isLoaded">
		<li-report height="900" :param.sync="param" :reportData="tableData" :columns="columns" isShowLoadMore="isShowLoadMore"></li-report>
	</view>
</template>

<script>
import LiReportMixin from '../../../mixins/liReportMixin.js';
import date from '@/utils/date.js';
export default {
	mixins: [LiReportMixin],
	data() {
		return {
			isShowLoadMore: true,
			reportFn: 'GetPageReport',
			param: {
				dataTimeRange: [date.getToday(), date.getToday()],
				pageNum: 1,
				pageSize: 20,
				reportId: 302
			},
			columns: [
				{
					name: 'id',
					label: '充值消费编号',
					fixed: true
				},
				{
					name: 'date',
					label: '日期',
					fixed: false,
					sorter: true
				},
				{
					name: 'grade',
					label: '会员分类',
					fixed: false
				},
				{
					name: 'userName',
					label: '会员姓名',
					fixed: false
				},
				{
					name: 'number',
					label: '会员卡号',
					fixed: false
				},
				{
					name: 'idmobile',
					label: '联系电话',
					fixed: false
				},
				{
					name: 'typeName',
					label: '积分类型',
					fixed: false
				},
				{
					name: 'pointNumber',
					label: '数量',
					fixed: false,
					sorter: true
				},
				{
					name: 'balance',
					label: '结余',
					fixed: false,
					sorter: true
				}
			]
		};
	}
};
</script>
